/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kz.epam.homedevices.storageproducts;

import kz.epam.homedevices.ElectricalDevice;

/**
 *
 * @author Knoppix
 */
public class StorageProductsDevice extends ElectricalDevice {

    private int temperature;
    private StorageProductsType type;

    public StorageProductsDevice() {
    }

    public StorageProductsDevice(StorageProductsType type, String maker, Double cardinality, boolean powerOn, int temperature) {
        super(maker, cardinality, powerOn);
        this.temperature = temperature;
        this.type = type;
    }

    public int getTemperature() {
        return temperature;
    }

    public void setTemperature(int temperature) {
        this.temperature = temperature;
    }

    public StorageProductsType getType() {
        return type;
    }

    public void setType(StorageProductsType type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "\n" + this.type.toString() + " {"
                + super.toString()
                + ", Temperature: " + this.temperature + "}";
    }
}
